package co.fitstart.mobile.handler;

import com.demo2do.core.support.Result;

import co.fitstart.entity.order.Order;
import co.fitstart.entity.user.User;

/**
 * 
 * @author downpour
 */
public interface QrcodeHandler {
    
    /**
     * 
     * @param code
     * @param mediaId
     * @return
     */
    public Result saveUserQrcode(String code, String mediaId);
    
    /**
     * 
     * @param user
     * @param wechatNumber
     * @return
     */
    public User changeUserQrcode(User user, String wechatNumber);
    
    /**
     * 
     * @param order
     * @param user
     */
    public void saveOrderQrcode(Order order, User user);
    
    /**
     * 
     * @param order
     * @param user
     * @return
     */
    public boolean deleteOrderQrcode(Order order, User user);
}
